<template>
  <div class="welcome">
    欢迎
    <el-button
      type="primary"
      @click="goDetail"
    >去登录</el-button>
  </div>
</template>
<script >
import { useRouter } from "vue-router"
export default {
  data() {
    return {

    }
  },
  setup() {
    let router = useRouter()
    const goDetail = () => {
      router.push('/login')
    }
    return {
      goDetail
    }
  }
}
</script>
<style lang="scss" scoped>
</style>